<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
	<title></title>
	<link rel="stylesheet" href="{HD $smarty.const.__PUBLIC__}/Css/public.css" />
	<script type="text/javascript" src="{HD $smarty.const.__PUBLIC__}/Js/jquery-1.7.2.min.js"></script>
	<script type="text/javascript" src="{HD $smarty.const.__PUBLIC__}/Js/public.js"></script>	
</head>

<body>
	<table class="table">
		<tr>
			<td class="th" colspan="20">用户列表</td>
		</tr>
		<tr class="tableTop">
			<td class="tdLittle1">ID</td>
			<td>用户名</td>
			<td>回答数</td>
			<td>被采纳数</td>
			<td>提问数</td>
			<td>金币</td>
			<td>经验</td>
			<td>最后登录时间</td>
			<td>最后登录IP</td>
			<td>注册时间</td>
			<td>帐号状态</td>
			<td>操作</td>
		</tr>
		{HD section loop=$user name=n}
		<tr>	
			<td>{HD $user[n].uid}</td>
			<td>{HD $user[n].username}</td>
			<td>{HD $user[n].answer}</td>
			<td>{HD $user[n].accept}</td>
			<td>{HD $user[n].ask}</td>
			<td>{HD $user[n].point}</td>
			<td>{HD $user[n].exp}</td>
			<td>{HD $user[n].logintime|date_format:'%Y-%m-%d'}</td>
			<td>{HD $user[n].loginip}</td>
			<td>{HD $user[n].restime|date_format:'%Y-%m-%d'}</td>
			{HD if $user[n].lock==0}
			<td>正常</td>
			<td><a href="{HD $smarty.const.__ROOT__}?c=user&user=lock&uid={HD $user[n].uid}">锁定</a></td>
			{HD else}
			<td>锁定</td>
			<td><a href="{HD $smarty.const.__ROOT__}?c=user&user=unlock&uid={HD $user[n].uid}">解锁</a></td>
			{HD /if}

		</tr>
		{HD /section}
	</table>

</body>
</html>